import request from '@/utils/request'

// 查询文件归档列表
export function listOaFiling(query) {
  return request({
    url: '/filing/oaFiling/list',
    method: 'get',
    params: query
  })
}

// 查询文件归档详细
export function getOaFiling(id) {
  return request({
    url: '/filing/oaFiling/' + id,
    method: 'get'
  })
}

// 保存文件归档
export function saveOaFiling(data) {
  return request({
    url: '/filing/oaFiling/save',
    method: 'post',
    data: data
  })
}

// 删除文件归档
export function delOaFiling(id) {
  return request({
    url: '/filing/oaFiling/' + id,
    method: 'delete'
  })
}

// 导出文件归档
export function exportOaFiling(query) {
  return request({
    url: '/filing/oaFiling/export',
    method: 'get',
    params: query
  })
}
// 查询文件归档汇总列表
export function listOaFilingPool(query) {
  return request({
    url: '/filing/oaFiling/pool',
    method: 'get',
    params: query
  })
}
